<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>execution::executor_index</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../index.html" title="Asio">
<link rel="up" href="../reference.html" title="Reference">
<link rel="prev" href="execution__execute.html" title="execution::execute">
<link rel="next" href="execution__executor_index/type.html" title="execution::executor_index::type">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="execution__execute.html"><img src="../../prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../home.png" alt="Home"></a><a accesskey="n" href="execution__executor_index/type.html"><img src="../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="asio.reference.execution__executor_index"></a><a class="link" href="execution__executor_index.html" title="execution::executor_index">execution::executor_index</a>
</h3></div></div></div>
<p>
        <a class="indexterm" name="asio.indexterm.execution__executor_index"></a>
      </p>
<p>
        The <a class="link" href="execution__executor_index.html" title="execution::executor_index"><code class="computeroutput"><span class="identifier">execution</span><span class="special">::</span><span class="identifier">executor_index</span></code></a> trait detects the
        type used by an executor to represent an index within a bulk operation.
      </p>
<pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>
    <span class="keyword">typename</span> <span class="identifier">T</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">executor_index</span>
</pre>
<h5>
<a name="asio.reference.execution__executor_index.h0"></a>
        <span><a name="asio.reference.execution__executor_index.types"></a></span><a class="link" href="execution__executor_index.html#asio.reference.execution__executor_index.types">Types</a>
      </h5>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
                <p>
                  Name
                </p>
              </th>
<th>
                <p>
                  Description
                </p>
              </th>
</tr></thead>
<tbody><tr>
<td>
                <p>
                  <a class="link" href="execution__executor_index/type.html" title="execution::executor_index::type"><span class="bold"><strong>type</strong></span></a>
                </p>
              </td>
<td>
                <p>
                  T::index_type if T::index_type is valid, otherwise executor_shape_t&lt;T&gt;.
                </p>
              </td>
</tr></tbody>
</table></div>
<p>
        Class template <code class="computeroutput"><span class="identifier">executor_index</span></code>
        is a type trait with a nested type alias <code class="computeroutput"><span class="identifier">type</span></code>
        whose type is <code class="computeroutput"><span class="identifier">T</span><span class="special">::</span><span class="identifier">index_type</span></code> if <code class="computeroutput"><span class="identifier">T</span><span class="special">::</span><span class="identifier">index_type</span></code>
        is valid, otherwise <code class="computeroutput"><span class="identifier">executor_shape_t</span><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;</span></code>.
      </p>
<h5>
<a name="asio.reference.execution__executor_index.h1"></a>
        <span><a name="asio.reference.execution__executor_index.requirements"></a></span><a class="link" href="execution__executor_index.html#asio.reference.execution__executor_index.requirements">Requirements</a>
      </h5>
<p>
        <span class="emphasis"><em>Header: </em></span><code class="literal">asio/execution/executor.hpp</code>
      </p>
<p>
        <span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio/execution.hpp</code>
      </p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2022 Christopher M. Kohlhoff<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="execution__execute.html"><img src="../../prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../home.png" alt="Home"></a><a accesskey="n" href="execution__executor_index/type.html"><img src="../../next.png" alt="Next"></a>
</div>
</body>
</html>
